'use strict';

describe('show templateDataFilter', function() {
  var $show;
  beforeEach(module('fbdApp.templateModule'));
  beforeEach(inject(function(_$filter_) {
    $show = _$filter_('showTempFilter');
  }));

  it('should be defined', function(done) {
    expect($show).toBeDefined();
    return done();
  });

  var items = [{
    "name": "title",
    "expression": "2080280",
    "mode": "signs",
    "similar": 3,
    "type": 3,
    "beginText": "<<<"
      // "configType": "subrule"
  }, {
    "name": "author",
    "expression": "80080",
    "mode": "signs",
    "similar": 5,
    "type": 3,
    "beginText": "<<<<"
      // "configType": "subrule"
  }];

  var res = [{
    "text": "abcd",
    "valid": true,
    "result": {
      "title": [{
        "text": "title12",
        "location": [1, 7]
      }, {
        "text": "title3",
        "location": [8, 6]
      }],
      "author": [{
        "text": "author1",
        "location": [1, 7]
      }, {
        "text": "author2",
        "location": [8, 7]
      }]
    }
  }, {
    "text": "abcd2",
    "valid": true,
    "result": {
      "title": [{
        "text": "title12",
        "location": [1, 7]
      }, {
        "text": "title3",
        "location": [8, 6]
      }],
      "author": [{
        "text": "author1",
        "location": [1, 7]
      }, {
        "text": "author2",
        "location": [8, 7]
      }]
    }
  }];

  it('show template filter', function(done) {

    return done();
  });



});
